1.ʵĿģ
  ½STM32F4 ̼V1.3.0Ĺģ

2.ʵ
  ؽ֮󣬺̵˸

3.ע

 1½̵ʱȷOption for target->C/C++ѡȫ궨DefineַΪSTM32F40_41xxx,USE_STDPERIPH_DRIVER
 
 
4.ֲн⵽15ʱmain.cԴ£





#include "stm32f4xx.h"


//ALIENTEK ̽STM32F407 ʵ0
//STM32F4ģ-⺯汾
//֧֣www.openedv.com
//Ա̣http://eboard.taobao.com
//ӿƼ޹˾  
//ߣԭ @ALIENTEK
  
void Delay(__IO uint32_t nCount);

void Delay(__IO uint32_t nCount)
{
  while(nCount--){}
}

int main(void)
{

  GPIO_InitTypeDef  GPIO_InitStructure;
  RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE);

  GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9 | GPIO_Pin_10;
  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
  GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
  GPIO_Init(GPIOF, &GPIO_InitStructure);

  while(1){
		GPIO_SetBits(GPIOF,GPIO_Pin_9|GPIO_Pin_10);
		Delay(0x7FFFFF);
		GPIO_ResetBits(GPIOF,GPIO_Pin_9|GPIO_Pin_10);
		Delay(0x7FFFFF);
	
	}
}
